﻿<%@ Page CodeBehind="Login.aspx.cs" Inherits="BwanaBank.BankOnline.WinUI.Window.Login"
    MasterPageFile="~/Default.master" %>

<asp:Content ContentPlaceHolderID="MainContent" ID="BodyContent" runat="server">
    <div class="failureNotification">
        <asp:Label ID="ErrorLabel" runat="server"></asp:Label>
        <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" ValidationGroup="LoginUserValidationGroup" />
    </div>
    <fieldset>
        <legend>Accès à vos comptes</legend>
        <p>
            <asp:TextBox CssClass="textEntry" ID="UserName" MaxLength="8" onkeypress="return checknum(event)"
                placeholder="Numéro client" runat="server" />
            <asp:RequiredFieldValidator ControlToValidate="UserName" CssClass="hidden" ErrorMessage="Vous devez renseigner votre numéro client."
                ID="UserNameRequired" runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ControlToValidate="UserName" CssClass="hidden" ErrorMessage="Votre numéro client doit être composé de 8 chiffres."
                ID="RegularExpressionValidator1" runat="server" ValidationExpression="^[\s\S]{8,8}$"
                ValidationGroup="LoginUserValidationGroup">
            </asp:RegularExpressionValidator>
        </p>
        <p>
            <asp:TextBox CssClass="passwordEntry" ID="Password" MaxLength="8" onkeypress="return checknum(event)"
                placeholder="Code secret" runat="server" TextMode="Password" />
            <asp:RequiredFieldValidator ControlToValidate="Password" CssClass="hidden" ErrorMessage="Vous devez renseigner votre code secret."
                ID="PasswordRequired" runat="server" ValidationGroup="LoginUserValidationGroup"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ControlToValidate="Password" CssClass="hidden" ErrorMessage="Votre code secret doit être composé de 8 chiffres."
                ID="RegularExpressionValidator2" runat="server" ValidationExpression="^[\s\S]{8,8}$"
                ValidationGroup="LoginUserValidationGroup">
            </asp:RegularExpressionValidator>
        </p>
        <p>
            <asp:CheckBox Checked="True" ID="RememberMe" runat="server" />
            <asp:Label AssociatedControlID="RememberMe" CssClass="inline" ID="Label1" runat="server">Maintenir la connexion</asp:Label>
        </p>
    </fieldset>
    <p class="submitButton">
        <asp:Button CssClass="loginEntry" OnClick="Button_Login" runat="server" Text="Se connecter"
            ValidationGroup="LoginUserValidationGroup" />
    </p>
</asp:Content>